// 租房分期
import request from "@/utils/request";

//获取金融产品列表
export function productList() {
  return request({
    url: '/banking/rentInstallment/productList',
    method: 'get',
  })
}

//查询租房合同
export function searchCfContract(cfContract) {
  return request({
    url: '/banking/rentInstallment/searchCfContract',
    method: 'get',
    params: cfContract,
  })
}

//查询租房合同
export function saveRentInstallment(rentInstallment) {
  return request({
    url: '/banking/rentInstallment/saveRentInstallment',
    method: 'post',
    data: rentInstallment,
  })
}


//获取借款金额
export function getLoanAmount(cfContractId) {
  return request({
    url: '/banking/rentInstallment/getLoanAmount',
    method: 'get',
    params: cfContractId,
  })
}

